<?php
/**
 * Yii view service
 *
 * @author nguyenmanhluu
 * @since Jul 26, 2013 - 3:31:26 PM
 */
?>
<div class="box span12">
    <div class="box-header">
        <h2>
            <i class="icon-envelope"></i>
            <?php echo $this->title ?>
        </h2>
    </div>
    <div class="box-content">        
        <link type="text/css" rel="stylesheet" href="<?php echo $this->assetDirWeb ?>css/Webmaster/crud.css" />
        <div class="row-fluid">
            <div id="list_item" class="span12">                
                <?php
                $this->renderPartial($this->listView, array(
                    'data'  => $data,
                    'pages' => $pages,
                ));
                ?>
            </div>

            <?php if ($this->checkAccess('create', '', TRUE)): ?>
                <div id="form_new_item" class="span6" style="display:none">
                    <?php
                    $this->renderPartial($this->formView, array(
                        'model' => $model
                    ));
                    ?>
                </div>
            <?php endif; ?>

            <?php if ($this->checkAccess('edit', '', TRUE)): ?>
                <div id="form_edit_item" class="span6" style="display:none"></div>
            <?php endif; ?>
        </div>
        <?php if ($this->ajaxControl == TRUE): ?>
            <script src="<?php echo $this->assetDirWeb ?>js/Webmaster/crud.js"></script>
        <?php endif; ?>
    </div>
</div><!--/span-->
